package constractdemo;

/**
 * @classname:Son
 * @description:
 * @author: Mr.Z
 * @date: 2020/11/29 16:26
 * @version: 0.1
 * @since:1.8
 */
public class Son extends Futher {
    public Son(String name) {
        super(name);
        System.out.println("子类有参构造");
    }

    @Override
    public String getName() {
        return super.getName();
    }

    @Override
    public void setName(String name) {
        super.setName(name);
    }

    static {
        System.out.println("子类static到代码块");
    }
    {
        System.out.println("子类普通代码块");
    }

    public Son() {
        System.out.println("子类无参构造构造方法");
    }

}
